package com.surpassun.emall.form;

import javax.validation.constraints.Size;

import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.NotEmpty;

public class AccountForm {

	@NotEmpty
	@Size(max = 75)
	private String firstname;
	
	@NotEmpty
	@Size(max = 75)
	private String lastname;
	 
	@NotEmpty
	@Size(max = 75)
	@Email
	private String email;
	
	@NotEmpty
	@Size(max = 75, min = 6)
	private String password;
	
	@NotEmpty
	@Size(max = 75, min = 6)
	private String confirmPassword;
	
	public AccountForm() {
	}

	public AccountForm(String firstname, String lastname, String email,
			String password, String confirmPassword) {
		this.firstname = firstname;
		this.lastname = lastname;
		this.email = email;
		this.password = password;
		this.confirmPassword = confirmPassword;
	}

	public String getFirstname() {
		return firstname;
	}

	public void setFirstname(String firstname) {
		this.firstname = firstname;
	}

	public String getLastname() {
		return lastname;
	}

	public void setLastname(String lastname) {
		this.lastname = lastname;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getConfirmPassword() {
		return confirmPassword;
	}

	public void setConfirmPassword(String confirmPassword) {
		this.confirmPassword = confirmPassword;
	}
}
